﻿import idv.ben.picasawebservice4flash.data.*;
import idv.ben.picasawebservice4flash.service.*;

class idv.ben.picasawebservice4flash.data.PhotoEntryGPhoto{

	private var __id:String;
	private var __version:String;
	private var __position:String;
	private var __albumid:String;
	private var __width:String;
	private var __height:String;
	private var __size:String;
	private var __client:String;
	private var __checksum:String;
	private var __timestamp:String;
	
	/**
	* 建構子
	*/
	function PhotoEntryGPhoto(){
	}
	
	/**
	* 設定資料
	* @param paramName 由 http://picasaweb.google.com/data/feed/api/user/<i>userID</i>/albumid/<i>albumID</i>?kind=<i>kinds</i> 取回的 xml 中，&lt;feed&gt; 節點下的 &lt;entry&gt; 節點下的 &lt;gphoto:{param name}&gt; 節點的 {param name}。
	* @param paramValue 值
	*/
	public function applyParam(paramName:String, paramValue:String):Void{
		//trace("paramName=" + paramName + ", paramValue=" + paramValue);
		switch(paramName.toLowerCase()){
			case "id".toLowerCase():
			case "version".toLowerCase():
			case "position".toLowerCase():
			case "albumid".toLowerCase():
			case "width".toLowerCase():
			case "height".toLowerCase():
			case "size".toLowerCase():
			case "client".toLowerCase():
			case "checksum".toLowerCase():
			case "timestamp".toLowerCase():
				this["__" + paramName] = paramValue;
		}
	}
	
	public function get id():String{return __id;}
	public function get version():String{return __version;}
	public function get position():String{return __position;}
	public function get albumid():String{return __albumid;}
	public function get width():String{return __width;}
	public function get height():String{return __height;}
	public function get size():String{return __size;}
	public function get client():String{return __client;}
	public function get checksum():String{return __checksum;}
	public function get timestamp():String{return __timestamp;}
}